package com.pktechan.manage.enumeration;

public enum ModelTypeEnum {
    LOGIN(1, "系统登录"),
    LOGOUT(2, "系统登出"),
    CHANGEPSW(3, "修改密码"),
    ROLE_MNG(4, "角色管理"),
    USER_MNG(5, "用户管理"),
    OPERATE_LOG_MNG(6, "操作日志管理"),
    DATE_LOG_MNG(7, "数据日志管理"),
    MANAGER_MNG(8, "管理人管理"),
    FUND_TRUSTEE_MNG(9, "托管人角色管理"),
    SYS_PARAM_MNG(10, "系统运行参数管理"),
    DISTRIBUTOR_MNG(11, "销售机构管理"),
    PRODUCT_FEE_MNG(12, "费率管理"),
    DEPOSIT_RATE_MNG(13, "银行存款利率管理"),
    FIN_SETTING_MNG(14, "会计期间管理"),
    TRADE_AUTO_MNG(15, "交易自动执行管理"),
    INVESTOR_MNG(16, "投资人管理"),
    PRODUCT_MNG(17, "产品管理"),
    IU_MNG(18, "投资单元管理"),
    PRODUCT_REGISTER_MNG(19, "产品份额登记管理"),
    BONUS_INFO_MNG(20, "分红计划管理"),
    COOLING_OFF_MNG(21, "冷静期管理"),
    ORDER_REDEEM_MNG(22, "预约赎回管理"),
    COUNTER_PARTY_MNG(23, "交易对手管理"),
    INVESTMGMT_PROJECT_ROLE_MNG(24, "投资项目管理"),
    FIN_ITEM_CLASS_MNG(25, "核算项目"),
    ACCT_TEMPLATE_MNG(26, "会计科目模板"),
    VOUCHER_MNG(27, "凭证管理"),
    TRADE_CONFIRM_DATE_RPT(28, "交易确认数据报表"),
    CREATE_INVESTOR_RPT(29, "开户确认报表"),
    BONUS_INFO_RPT(30, "分红数据确认报表"),
    PRODUCT_FOR_ISSUE_RPT(31, "产品发行报表"),
    CHANGE_DATA_RPT(32, "转换数据报表"),
    TREADE_DETAIL_RPT(33, "投资人交易明细报表"),
    CREATE_INVESTOR_CONFIRM(34, "投资人审核"),
    BENCHMARK_YIELD_CONFIRM(35, "收益率审核"),
    CUSTOMER_DRAFT(36, "投资人录入管理"),
    TRADE_INTO_DRAFT(37, "交易导入管理"),
    BONUS_INFO_CONFIRM(38, "分红计划审核"),
    IU_MNG_CONFIRM(39, "投资单元审核"),
    ADD_UNIT(40, "添加投资单元"),
    TRADE_ORDER_AUDIT(41, "订单审核"),
    CUSTOMER_AUDIT(42, "高盛通客户信息审核"),
    QUERY_CLIENT(43, "客户端查询"),
    PRODUCT_PROJECT(44, "产品投资项目"),REGISTER_MAIN(40, "客户持仓管理"),

    PRODUCT_YIELD(50, "定开定融收益率");

    private Integer code;
    private String name;

    ModelTypeEnum(Integer code, String name) {
        this.code = code;
        this.name = name;
    }
    public static ModelTypeEnum getByCode(Integer code) {
        for (ModelTypeEnum modelTypeEnum : ModelTypeEnum.values()) {
            if (modelTypeEnum.getCode().equals(code)) {
                return modelTypeEnum;
            }
        }
        return null;
    }

    public Integer getCode() {
        return code;
    }

    public String getName() {
        return name;
    }
}
